package com.xiaobaibai.dao;

import com.xiaobaibai.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface BlogDao {

    int deleteByPrimaryKey(Integer id);

    void setINCREMENT(Integer start);

    int insert(Blog record);

    int insertSelective(Blog record);

    Blog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Blog record);

    int updateByPrimaryKey(Blog record);

    List<Blog> getAllBlogList();

    int updateStatus(@Param("id") String id,@Param("status") String status);

    int haveLabelId(Integer labelId);

}